drop columns based on condition pandas

38

df = df.drop(df[df.score < 50].index)
df = df.drop(df[(df.score < 50) & (df.score > 20)].index)

Comments

Submit
0 Comments